﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace implicit_隐式转换_
{
    class MouseCode
    {
        public int MouseValue;

        public static implicit operator KeyCode(MouseCode c)
        {
            KeyCode key = new KeyCode();
            key.KeyValue = c.MouseValue;
            return key;
        }
    }
}
